package SinglePlayer;
import java.awt.BorderLayout;
import java.awt.Panel;
import java.awt.Point;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;


public class Test extends JFrame implements Runnable{

	private JLabel header;
	private JLabel[][] label;
	private int amount[] = {4,5};
	
	
	public Test(){
		super("~Matching Game~");
		initializeComponent();
		run();
	}
	
	public void initializeComponent() {
		header = new JLabel("Match the Items!");
		JPanel mainTop = new JPanel();
		mainTop.add(header);
		
		JPanel mainCenter = new JPanel();
		label = new JLabel[amount[0]][amount[1]];
		for( int i = 0; i<amount[0]; i++){
			for(int j = 0; j<amount[1]; j++){
				label[i][j] = new JLabel("A");
				mainCenter.add(label[i][j]);
			}
		}
		
		this.add(mainTop, BorderLayout.NORTH);
		this.add(mainCenter, BorderLayout.CENTER);
	}

	@Override
	public void run() {
		this.pack();
		this.setVisible(true);
		
	}
	
}